package com.qf.cls.application.controller;


import com.qf.cls.application.entity.Cls;
import com.qf.cls.application.tcc.IClsTcc;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * (Cls)表控制层
 *
 * @author makejava
 * @since 2023-11-15 09:19:46
 */
@RestController
@RequestMapping("/cls")
public class ClsController {

    @Autowired
    private IClsTcc clsTcc;

    @RequestMapping("/insert")
    public String insert(){
        System.out.println("保存班级信息....");
        Cls cls = new Cls()
                .setId(199)
                .setClsName("一年一班");
        clsTcc.insert(cls);
        return "succ";
    }
}

